﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

public class Frame
{
    public int waitTime;
    public int currentTime = 0;
    public Asset asset;
    public Rectangle sourceRectangle;
    public Vector2 origin;

    public Frame(Asset asset, Rectangle sourceRectangle, int waitTime, Vector2 origin)
    {
        this.asset = asset;
        this.sourceRectangle = sourceRectangle;
        this.waitTime = waitTime;
        currentTime = waitTime;
        this.origin = origin;
        if (waitTime < 0)
        {
            waitTime = 0;
        }
    }
}
